package com.yummy.common;

import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @author yinbo
 */
@Component
public class IDTools {

	public static String getId(){
		UUID uuid = UUID.randomUUID();
		return DateUtils.getDate("yyyyMMddHHmmss")+uuid.toString().replace("-","").substring(5,15);
	}
}